# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route
#test
# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               build_route('death','DeathHandler'),
               build_route('socketedgate','GateHandler'),
               build_route('swords','SwordHandler'),
               build_route('pearls','PearlsHandler'),
               build_route('soldier','SoldierHandler'),
               build_route('cliff','CliffHandler'),
               build_route('live', 'LiveHandler'),
               build_route('startingpoint', 'StartingPointHandler'),
               default_route('introduction', 'IntroductionHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
